package com.qingmeng.apiclientsdk.dto;

import com.qingmeng.apiclientsdk.entry.MonthDay;
import lombok.Data;

/**
 * 通用请求参数
 * @param <T>
 */
@Data
public class RequestParams<T> {
    private String url;
    private T body; //泛型参数，用于存储不同类型的请求参数
    public RequestParams(String url, T body) {
        this.url = url;
        this.body = body;
    }

    public RequestParams() {
    }

    public RequestParams(MonthDay monthDay) {
        this.body = (T) monthDay;
    }
}
